package org.bl.chat.dao;

import org.bl.chat.model.po.ChannelDO;
import org.bl.chat.model.po.UserDO;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;
import java.util.Optional;

public interface UserDao extends MongoRepository<UserDO, String> {
    Optional<UserDO> findByIp(String ip);

    List<UserDO> findByIsOnline(boolean b);
}
